home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
oad11.zip
/
OAD.BAT
next >
Wrap
DOS Batch File
|
1991-06-26
|
1KB
|
82 lines
@Echo Off
if "%1"=="" goto end2
if "%1"=="D" goto Daily
goto Param2
:Daily
REM Place DAILY programs here if you want the daily
REM programs running BEFORE the montly and weekly programs.
ECHO DAILY
:Param2
if "%2"=="" goto End1
if "%2"=="N" goto Param3
if %2==0 goto Sun
if %2==1 goto Mon
if %2==2 goto Tue
if %2==3 goto Wed
if %2==4 goto Thu
if %2==5 goto Fri
if %2==6 goto Sat
goto param3
:Sun
REM Place weekly SUNDAY programs here
ECHO SUNDAY
goto param3
:Mon
REM Place weekly MONDAY programs here
ECHO MONDAY
goto param3
:Tue
REM Place weekly TUESDAY programs here
ECHO TUESDAY
goto param3
:Wed
REM Place weekly WEDNESDAY programs here
ECHO WEDNESDAY
goto param3
:Thu
REM Place weekly THURSDAY programs here
ECHO THURSDAY
goto param3
:Fri
REM Place weekly FRIDAY programs here
ECHO FRIDAY
goto param3
:Sat
REM Place weekly SATURDAY programs here
ECHO SATURDAY
:Param3
if "%3"=="" goto End1
if "%3"=="M" goto Monthly
goto End1
:Monthly
REM Place MONTHLY programs here
ECHO MONTHLY
:End1
if "%1"=="D" goto daily2
goto End2
:Daily2
REM Place DAILY programs here also, if you want them to execute
REM after the weekly and monthly programs have run.
ECHO DAILY2
:End2
REM You can delete all the ECHO lines, as they are there for
REM demonstration purposes. Delete the REM lines if you have
REM all this figured out.